package factory.simpleFactory;

/**
 * @Author: Doream
 * @Date: 2022/1/27 23:14
 */
public class MilkTeaStore {
    private MilkTeaFactory factory;

    public MilkTeaStore() {
        this.factory = new MilkTeaFactory();
    }

    public MilkTea saleAMilkTea(String type,int sweetness,String temperature){
        MilkTea tea = factory.createMilkTea(type, sweetness, temperature);
        return tea;
    }

    public MilkTea saleAMilkTea(String type,int sweetness){
        MilkTea tea = factory.createMilkTea(type, sweetness);
        return tea;
    }

    public MilkTea saleAMilkTea(String type){
        MilkTea tea = factory.createMilkTea(type);
        return tea;
    }
}
